<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      template="./template.xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <head>
        <title>TODO supply a title</title>
        <meta name="viewport" content="width=device-width"/>
    </head>
    <body>
        <h:form id="form5">
            <p:menubar>
                <p:submenu label="Registros" icon="ui-icon-document">
                    <p:menuitem><h:link value="Home" outcome="index"/></p:menuitem>
                    <p:menuitem><p:commandLink value="Salvar" action="#{accescontrol.AccesoSalvar()}"/></p:menuitem>
                </p:submenu>
            </p:menubar>
        </h:form>
        <h:form>
            <h:panelGrid columns="2" cellpadding="5">
                <p:outputLabel for="Id_Revista" value="Id_Revista: " />
                <h:inputText id="Id_Revista" value="#{customer2.idRevista}"/>
                <p:commandButton value="Borrar" actionListener="#{customer2.Borrar()}" update="display" oncomplete="PF('dlg').show()"/>
                <p:commandLink value="Home" actionListener="#{customer2.AccesoLista()}"/>


            </h:panelGrid>

            <p:dialog widgetVar="dlg" modal="true" resizable="false" header="Bajas" showEffect="fade">
                <p:panelGrid id="display" columns="2" columnClasses="label,value">
                    <h:outputText value="ID: " />
                    <h:outputText id="IdValue" value="#{customer2.idRevista}" />
                </p:panelGrid>
            </p:dialog>
        </h:form>
    </body>
</html>
